package org.bigjava.novelplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.bigjava.novelplatform.common.enums.ActionType;

import java.io.Serializable;

/**
 * 
 * @TableName comment_action
 */
@TableName(value ="comment_action")
@Data
public class CommentAction implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 评论类型
     0本章说,必要时可对该表扩展
     */
    private Integer commentType;

    /**
     * 某个评论表id
     表类型与comment_type有关
     */
    private Integer commentId;

    /**
     * 操作类型
     0点赞；1点踩
     */
    private ActionType actionType;

    /**
     * 逻辑删除
     0未删除；1删除
     */
    private Integer deleteState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}